

  ========= 测试开始 : 20210621_133929 =========



>>> cases\API\Point2.py

[ suite setup ] cases\API\Point2.py
返回token

* API_2009  -  2021-06-21 13:39:30

  [ case execution steps ]
数据点监控接口：通过子系统查询设备实时状态信息 测试     #2.2       api/v1/dataManagement/getPointByAppName
前置条件：token正确，'appName': 'ECS,FYM'错误，虽然存在，但不再目标appName内，locationId不填
预期结果:
{
    "msg": "请求失败",
    "code": 1,
    "data": 0,
    "type": null,
    "status": "false"
}
测试结果：
{
    "status": "success",
    "msg": "查询成功",
    "code": 0,
    "type": null,
    "data": []
}

对比结果：
['"code":0', '"code":1', '"data":', '"data":0', '"msg":"查询成功"', '"msg":"请求失败"', '"status":"false"', '"status":"success"']

** 检查点 **  预期结果和输出结果是否保持一致 ---->  !! 不通过!!

  FAIL    
Traceback:
  File "cases\API\Point2.py", line 111, in teststeps
    CHECK_POINT('预期结果和输出结果是否保持一致',expectedResult==response.content.decode('utf8'))
  File "C:\Users\EDZ\PycharmProjects\pythonProject\venv\lib\site-packages\hytest\common.py", line 50, in CHECK_POINT
    raise AssertionError()
AssertionError


* API_2009_01  -  2021-06-21 13:39:30

  [ case execution steps ]
数据点监控接口：通过子系统查询设备实时状态信息 测试     #2.2       api/v1/dataManagement/getPointByAppName
前置条件：token正确，'appName': 'AFC，PSD,BAS'错误，中英文逗号混合
预期结果:
{
    "msg": "请求失败",
    "code": 1,
    "data": 0,
    "type": null,
    "status": "false"
}
测试结果：
{
    "status": "success",
    "msg": "查询成功",
    "code": 0,
    "type": null,
    "data": [
        {
            "subAppName": "BAS",
            "deviceList": [
                {
                    "deviceName": "ESCALATOR002",
                    "pointList": [
                        {
                            "keyId": 98610722,
                            "pointName": "ZGZ.BAS.DFT.ESCALATOR02.ddicb.Value",
                            "dataPtDesc": "关闭",
                            "value": "1",
                            "deviceName": "ESCALATOR002",
                            "subAppName": "BAS"
                        }
                    ]
                },
                {
                    "deviceName": "ESCALATOR003",
                    "pointList": [
                        {
                            "keyId": 98610725,
                            "pointName": "ZGZ.BAS.DFT.ESCALATOR03.ddicb.Value",
                            "dataPtDesc": "关闭",
                            "value": "1",
                            "deviceName": "ESCALATOR003",
                            "subAppName": "BAS"
                        }
                    ]
                },
                {
                    "deviceName": "ESCALATOR004",
                    "pointList": [
                        {
                            "keyId": 98610728,
                            "pointName": "ZGZ.BAS.DFT.ESCALATOR04.ddicb.Value",
                            "dataPtDesc": "关闭",
                            "value": "1",
                            "deviceName": "ESCALATOR004",
                            "subAppName": "BAS"
                        }
                    ]
                },
                {
                    "deviceName": "FJM001",
                    "pointList": [
                        {
                            "keyId": 98610784,
                            "pointName": "ZGZ.BAS.FJM.FJM01.ddicb01.Value",
                            "dataPtDesc": "开启",
                            "value": "0",
                            "deviceName": "FJM001",
                            "subAppName": "BAS"
                        }
                    ]
                },
                {
                    "deviceName": "FJM002",
                    "pointList": [
                        {
                            "keyId": 98610787,
                            "pointName": "ZGZ.BAS.FJM.FJM02.ddicb01.Value",
                            "dataPtDesc": "开启",
                            "value": "0",
                            "deviceName": "FJM002",
                            "subAppName": "BAS"
                        }
                    ]
                },
                {
                    "deviceName": "ZM001",
                    "pointList": [
                        {
                            "keyId": 98610746,
                            "pointName": "ZGZ.BAS.ZM.ILLUMINATION01.ddicb01.Value",
                            "dataPtDesc": "开启",
                            "value": "0",
                            "deviceName": "ZM001",
                            "subAppName": "BAS"
                        }
                    ]
                },
                {
                    "deviceName": "ZM002",
                    "pointList": [
                        {
                            "keyId": 98610749,
                            "pointName": "ZGZ.BAS.ZM.ILLUMINATION02.ddicb01.Value",
                            "dataPtDesc": "开启",
                            "value": "0",
                            "deviceName": "ZM002",
                            "subAppName": "BAS"
                        }
                    ]
                }
            ]
        }
    ]
}

对比结果：
['"code":0', '"code":1', '"data":"subAppName":"BAS"', '"data":0', '"dataPtDesc":"关闭"', '"dataPtDesc":"开启"', '"deviceList":"deviceName":"ESCALATOR002"', '"deviceName":"ESCALATOR002"', '"deviceName":"ESCALATOR003"', '"deviceName":"ESCALATOR004"', '"deviceName":"FJM001"', '"deviceName":"FJM002"', '"deviceName":"ZM001"', '"deviceName":"ZM002"', '"msg":"查询成功"', '"msg":"请求失败"', '"pointList":"keyId":98610722', '"pointList":"keyId":98610725', '"pointList":"keyId":98610728', '"pointList":"keyId":98610746', '"pointList":"keyId":98610749', '"pointList":"keyId":98610784', '"pointList":"keyId":98610787', '"pointName":"ZGZ.BAS.DFT.ESCALATOR02.ddicb.Value"', '"pointName":"ZGZ.BAS.DFT.ESCALATOR03.ddicb.Value"', '"pointName":"ZGZ.BAS.DFT.ESCALATOR04.ddicb.Value"', '"pointName":"ZGZ.BAS.FJM.FJM01.ddicb01.Value"', '"pointName":"ZGZ.BAS.FJM.FJM02.ddicb01.Value"', '"pointName":"ZGZ.BAS.ZM.ILLUMINATION01.ddicb01.Value"', '"pointName":"ZGZ.BAS.ZM.ILLUMINATION02.ddicb01.Value"', '"status":"false"', '"status":"success"', '"subAppName":"BAS"', '"value":"0"', '"value":"1"']

** 检查点 **  预期结果和输出结果是否保持一致 ---->  !! 不通过!!

  FAIL    
Traceback:
  File "cases\API\Point2.py", line 137, in teststeps
    CHECK_POINT('预期结果和输出结果是否保持一致',expectedResult==response.content.decode('utf8'))
  File "C:\Users\EDZ\PycharmProjects\pythonProject\venv\lib\site-packages\hytest\common.py", line 50, in CHECK_POINT
    raise AssertionError()
AssertionError


* API_2009_02  -  2021-06-21 13:39:30

  [ case execution steps ]
数据点监控接口：通过子系统查询设备实时状态信息 测试     #2.2       api/v1/dataManagement/getPointByAppName
前置条件：token正确，'appName': 'AFC，PSD，BAS'错误，中文逗号
预期结果:
{
    "msg": "请求失败",
    "code": 1,
    "data": 0,
    "type": null,
    "status": "false"
}
测试结果：
{
    "status": "success",
    "msg": "查询成功",
    "code": 0,
    "type": null,
    "data": []
}

对比结果：
['"code":0', '"code":1', '"data":', '"data":0', '"msg":"查询成功"', '"msg":"请求失败"', '"status":"false"', '"status":"success"']

** 检查点 **  预期结果和输出结果是否保持一致 ---->  !! 不通过!!

  FAIL    
Traceback:
  File "cases\API\Point2.py", line 163, in teststeps
    CHECK_POINT('预期结果和输出结果是否保持一致',expectedResult==response.content.decode('utf8'))
  File "C:\Users\EDZ\PycharmProjects\pythonProject\venv\lib\site-packages\hytest\common.py", line 50, in CHECK_POINT
    raise AssertionError()
AssertionError


* API_2009_03  -  2021-06-21 13:39:30

  [ case execution steps ]
数据点监控接口：通过子系统查询设备实时状态信息 测试     #2.2       api/v1/dataManagement/getPointByAppName
前置条件：token正确，'appName': 'AFC,PSD,BAS'错误，英文逗号
预期结果:
{
    "msg": "请求失败",
    "code": 1,
    "data": 0,
    "type": null,
    "status": "false"
}
测试结果：
{
    "status": "success",
    "msg": "查询成功",
    "code": 0,
    "type": null,
    "data": [
        {
            "subAppName": "BAS",
            "deviceList": [
                {
                    "deviceName": "ESCALATOR002",
                    "pointList": [
                        {
                            "keyId": 98610722,
                            "pointName": "ZGZ.BAS.DFT.ESCALATOR02.ddicb.Value",
                            "dataPtDesc": "关闭",
                            "value": "1",
                            "deviceName": "ESCALATOR002",
                            "subAppName": "BAS"
                        }
                    ]
                },
                {
                    "deviceName": "ESCALATOR003",
                    "pointList": [
                        {
                            "keyId": 98610725,
                            "pointName": "ZGZ.BAS.DFT.ESCALATOR03.ddicb.Value",
                            "dataPtDesc": "关闭",
                            "value": "1",
                            "deviceName": "ESCALATOR003",
                            "subAppName": "BAS"
                        }
                    ]
                },
                {
                    "deviceName": "ESCALATOR004",
                    "pointList": [
                        {
                            "keyId": 98610728,
                            "pointName": "ZGZ.BAS.DFT.ESCALATOR04.ddicb.Value",
                            "dataPtDesc": "关闭",
                            "value": "1",
                            "deviceName": "ESCALATOR004",
                            "subAppName": "BAS"
                        }
                    ]
                },
                {
                    "deviceName": "FJM001",
                    "pointList": [
                        {
                            "keyId": 98610784,
                            "pointName": "ZGZ.BAS.FJM.FJM01.ddicb01.Value",
                            "dataPtDesc": "开启",
                            "value": "0",
                            "deviceName": "FJM001",
                            "subAppName": "BAS"
                        }
                    ]
                },
                {
                    "deviceName": "FJM002",
                    "pointList": [
                        {
                            "keyId": 98610787,
                            "pointName": "ZGZ.BAS.FJM.FJM02.ddicb01.Value",
                            "dataPtDesc": "开启",
                            "value": "0",
                            "deviceName": "FJM002",
                            "subAppName": "BAS"
                        }
                    ]
                },
                {
                    "deviceName": "ZM001",
                    "pointList": [
                        {
                            "keyId": 98610746,
                            "pointName": "ZGZ.BAS.ZM.ILLUMINATION01.ddicb01.Value",
                            "dataPtDesc": "开启",
                            "value": "0",
                            "deviceName": "ZM001",
                            "subAppName": "BAS"
                        }
                    ]
                },
                {
                    "deviceName": "ZM002",
                    "pointList": [
                        {
                            "keyId": 98610749,
                            "pointName": "ZGZ.BAS.ZM.ILLUMINATION02.ddicb01.Value",
                            "dataPtDesc": "开启",
                            "value": "0",
                            "deviceName": "ZM002",
                            "subAppName": "BAS"
                        }
                    ]
                }
            ]
        },
        {
            "subAppName": "AFC",
            "deviceList": [
                {
                    "deviceName": "AFC001",
                    "pointList": [
                        {
                            "keyId": 98609913,
                            "pointName": "ZGZ.AFC.AGM1.ddiopen.Value",
                            "dataPtDesc": "开启",
                            "value": "0",
                            "deviceName": "AFC001",
                            "subAppName": "AFC"
                        }
                    ]
                },
                {
                    "deviceName": "AFC002",
                    "pointList": [
                        {
                            "keyId": 98609949,
                            "pointName": "ZGZ.AFC.AGM10.ddiopen.Value",
                            "dataPtDesc": "开启",
                            "value": "0",
                            "deviceName": "AFC002",
                            "subAppName": "AFC"
                        }
                    ]
                },
                {
                    "deviceName": "AFC003",
                    "pointList": [
                        {
                            "keyId": 98609954,
                            "pointName": "ZGZ.AFC.AGM11.ddiclose.Value",
                            "dataPtDesc": "关闭",
                            "value": "1",
                            "deviceName": "AFC003",
                            "subAppName": "AFC"
                        }
                    ]
                },
                {
                    "deviceName": "AFC004",
                    "pointList": [
                        {
                            "keyId": 98609957,
                            "pointName": "ZGZ.AFC.AGM12.ddiopen.Value",
                            "dataPtDesc": "开启",
                            "value": "0",
                            "deviceName": "AFC004",
                            "subAppName": "AFC"
                        }
                    ]
                },
                {
                    "deviceName": "AFC005",
                    "pointList": [
                        {
                            "keyId": 98609961,
                            "pointName": "ZGZ.AFC.AGM13.ddiopen.Value",
                            "dataPtDesc": "开启",
                            "value": "0",
                            "deviceName": "AFC005",
                            "subAppName": "AFC"
                        }
                    ]
                }
            ]
        }
    ]
}

对比结果：
['"code":0', '"code":1', '"data":"subAppName":"BAS"', '"data":0', '"dataPtDesc":"关闭"', '"dataPtDesc":"开启"', '"deviceList":"deviceName":"AFC001"', '"deviceList":"deviceName":"ESCALATOR002"', '"deviceName":"AFC001"', '"deviceName":"AFC002"', '"deviceName":"AFC003"', '"deviceName":"AFC004"', '"deviceName":"AFC005"', '"deviceName":"ESCALATOR002"', '"deviceName":"ESCALATOR003"', '"deviceName":"ESCALATOR004"', '"deviceName":"FJM001"', '"deviceName":"FJM002"', '"deviceName":"ZM001"', '"deviceName":"ZM002"', '"msg":"查询成功"', '"msg":"请求失败"', '"pointList":"keyId":98609913', '"pointList":"keyId":98609949', '"pointList":"keyId":98609954', '"pointList":"keyId":98609957', '"pointList":"keyId":98609961', '"pointList":"keyId":98610722', '"pointList":"keyId":98610725', '"pointList":"keyId":98610728', '"pointList":"keyId":98610746', '"pointList":"keyId":98610749', '"pointList":"keyId":98610784', '"pointList":"keyId":98610787', '"pointName":"ZGZ.AFC.AGM1.ddiopen.Value"', '"pointName":"ZGZ.AFC.AGM10.ddiopen.Value"', '"pointName":"ZGZ.AFC.AGM11.ddiclose.Value"', '"pointName":"ZGZ.AFC.AGM12.ddiopen.Value"', '"pointName":"ZGZ.AFC.AGM13.ddiopen.Value"', '"pointName":"ZGZ.BAS.DFT.ESCALATOR02.ddicb.Value"', '"pointName":"ZGZ.BAS.DFT.ESCALATOR03.ddicb.Value"', '"pointName":"ZGZ.BAS.DFT.ESCALATOR04.ddicb.Value"', '"pointName":"ZGZ.BAS.FJM.FJM01.ddicb01.Value"', '"pointName":"ZGZ.BAS.FJM.FJM02.ddicb01.Value"', '"pointName":"ZGZ.BAS.ZM.ILLUMINATION01.ddicb01.Value"', '"pointName":"ZGZ.BAS.ZM.ILLUMINATION02.ddicb01.Value"', '"status":"false"', '"status":"success"', '"subAppName":"AFC"', '"subAppName":"BAS"', '"value":"0"', '"value":"1"']

** 检查点 **  预期结果和输出结果是否保持一致 ---->  !! 不通过!!

  FAIL    
Traceback:
  File "cases\API\Point2.py", line 189, in teststeps
    CHECK_POINT('预期结果和输出结果是否保持一致',expectedResult==response.content.decode('utf8'))
  File "C:\Users\EDZ\PycharmProjects\pythonProject\venv\lib\site-packages\hytest\common.py", line 50, in CHECK_POINT
    raise AssertionError()
AssertionError


* API_2009_04  -  2021-06-21 13:39:30

  [ case execution steps ]
数据点监控接口：通过子系统查询设备实时状态信息 测试     #2.2       api/v1/dataManagement/getPointByAppName
前置条件：token正确，'appName': 'AFCPSDBAS'错误，没有英文逗号
预期结果:
{
    "msg": "请求失败",
    "code": 1,
    "data": 0,
    "type": null,
    "status": "false"
}
测试结果：
{
    "status": "success",
    "msg": "查询成功",
    "code": 0,
    "type": null,
    "data": []
}

对比结果：
['"code":0', '"code":1', '"data":', '"data":0', '"msg":"查询成功"', '"msg":"请求失败"', '"status":"false"', '"status":"success"']

** 检查点 **  预期结果和输出结果是否保持一致 ---->  !! 不通过!!

  FAIL    
Traceback:
  File "cases\API\Point2.py", line 215, in teststeps
    CHECK_POINT('预期结果和输出结果是否保持一致',expectedResult==response.content.decode('utf8'))
  File "C:\Users\EDZ\PycharmProjects\pythonProject\venv\lib\site-packages\hytest\common.py", line 50, in CHECK_POINT
    raise AssertionError()
AssertionError


* API_2009_05  -  2021-06-21 13:39:30

  [ case execution steps ]
数据点监控接口：通过子系统查询设备实时状态信息 测试     #2.2       api/v1/dataManagement/getPointByAppName
前置条件：token正确，'appName': 'AFC,PSDBAS'错误，只有一个英文逗号
预期结果:
{
    "msg": "请求失败",
    "code": 1,
    "data": 0,
    "type": null,
    "status": "false"
}
测试结果：
{
    "status": "success",
    "msg": "查询成功",
    "code": 0,
    "type": null,
    "data": [
        {
            "subAppName": "AFC",
            "deviceList": [
                {
                    "deviceName": "AFC001",
                    "pointList": [
                        {
                            "keyId": 98609913,
                            "pointName": "ZGZ.AFC.AGM1.ddiopen.Value",
                            "dataPtDesc": "开启",
                            "value": "0",
                            "deviceName": "AFC001",
                            "subAppName": "AFC"
                        }
                    ]
                },
                {
                    "deviceName": "AFC002",
                    "pointList": [
                        {
                            "keyId": 98609949,
                            "pointName": "ZGZ.AFC.AGM10.ddiopen.Value",
                            "dataPtDesc": "开启",
                            "value": "0",
                            "deviceName": "AFC002",
                            "subAppName": "AFC"
                        }
                    ]
                },
                {
                    "deviceName": "AFC003",
                    "pointList": [
                        {
                            "keyId": 98609954,
                            "pointName": "ZGZ.AFC.AGM11.ddiclose.Value",
                            "dataPtDesc": "关闭",
                            "value": "1",
                            "deviceName": "AFC003",
                            "subAppName": "AFC"
                        }
                    ]
                },
                {
                    "deviceName": "AFC004",
                    "pointList": [
                        {
                            "keyId": 98609957,
                            "pointName": "ZGZ.AFC.AGM12.ddiopen.Value",
                            "dataPtDesc": "开启",
                            "value": "0",
                            "deviceName": "AFC004",
                            "subAppName": "AFC"
                        }
                    ]
                },
                {
                    "deviceName": "AFC005",
                    "pointList": [
                        {
                            "keyId": 98609961,
                            "pointName": "ZGZ.AFC.AGM13.ddiopen.Value",
                            "dataPtDesc": "开启",
                            "value": "0",
                            "deviceName": "AFC005",
                            "subAppName": "AFC"
                        }
                    ]
                }
            ]
        }
    ]
}

对比结果：
['"code":0', '"code":1', '"data":"subAppName":"AFC"', '"data":0', '"dataPtDesc":"关闭"', '"dataPtDesc":"开启"', '"deviceList":"deviceName":"AFC001"', '"deviceName":"AFC001"', '"deviceName":"AFC002"', '"deviceName":"AFC003"', '"deviceName":"AFC004"', '"deviceName":"AFC005"', '"msg":"查询成功"', '"msg":"请求失败"', '"pointList":"keyId":98609913', '"pointList":"keyId":98609949', '"pointList":"keyId":98609954', '"pointList":"keyId":98609957', '"pointList":"keyId":98609961', '"pointName":"ZGZ.AFC.AGM1.ddiopen.Value"', '"pointName":"ZGZ.AFC.AGM10.ddiopen.Value"', '"pointName":"ZGZ.AFC.AGM11.ddiclose.Value"', '"pointName":"ZGZ.AFC.AGM12.ddiopen.Value"', '"pointName":"ZGZ.AFC.AGM13.ddiopen.Value"', '"status":"false"', '"status":"success"', '"subAppName":"AFC"', '"value":"0"', '"value":"1"']

** 检查点 **  预期结果和输出结果是否保持一致 ---->  !! 不通过!!

  FAIL    
Traceback:
  File "cases\API\Point2.py", line 241, in teststeps
    CHECK_POINT('预期结果和输出结果是否保持一致',expectedResult==response.content.decode('utf8'))
  File "C:\Users\EDZ\PycharmProjects\pythonProject\venv\lib\site-packages\hytest\common.py", line 50, in CHECK_POINT
    raise AssertionError()
AssertionError



  ========= 测试结束 : 20210621_133930 =========


  耗时    : 0.583 秒


  预备执行用例数量 : 6

  实际执行用例数量 : 6

  通过 : 0

  失败 : 6

  异常 : 0

  套件初始化失败 : 0

  套件清除  失败 : 0

  用例初始化失败 : 0

  用例清除  失败 : 0
